package com.bric.util;

import java.util.concurrent.RejectedExecutionHandler;
import java.util.concurrent.ThreadPoolExecutor;

import org.apache.log4j.Logger;

public class RejectHander implements RejectedExecutionHandler{
	private static final Logger log=Logger.getLogger(RejectHander.class);
	@Override
	public void rejectedExecution(Runnable r, ThreadPoolExecutor executor) {
		log.info("线程池满了"+executor.getCompletedTaskCount());
	}
	
}
